build: Add an option to use more conservative GResource embedding
authorSimon McVittie <smcv@debian.org>
Mon, 15 Aug 2022 21:24:26 +0000 (22:24 +0100)
committerSimon McVittie <smcv@debian.org>
Tue, 16 Aug 2022 08:23:59 +0000 (09:23 +0100)
commit74948a778da0af69c77b5f23cdce6d21ca1ed77e
treea3f551b6c4eea28257f146d28ccfcdd68d7df795
parentd5ef2874559a31b195f8665d5d2adb05c42b5301
build: Add an option to use more conservative GResource embedding

Doing clever things with objcopy is faster, but also doesn't work on
all toolchains and architectures: in particular, Debian has had trouble
with this on arm and mips.

Developers will want to leave this option switched on for faster
incremental builds (unless their toolchain doesn't support it), but in
a distro build environment where we are compiling all of GTK every time,
the cost of potentially unreliable builds is higher than the cost of
using slower but more conservative GResource embedding.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/5107
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4956
Signed-off-by: Simon McVittie <smcv@debian.org>
Gbp-Pq: Name build-Add-an-option-to-use-more-conservative-GResource-em.patch
gtk/meson.build
meson_options.txt